package com.medicine.product.study.factory;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lynn
 * @version 1.0
 * @date 2022/2/14
 */
public class Builder {

    private List<Sender> list=new ArrayList<Sender>();

    public void produceMailSender(int count){
        for(int i=0;i<count;i++){
            list.add(new MailSender());
        }
    }

    public void produceSmsSender(int count){
        for(int i=0;i<count;i++){
            list.add(new SmsSender());
        }
    }
}
